package com.example.visitsweb.controller;


import com.example.visitsweb.lang.Result;
import com.example.visitsweb.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author MarkerHub
 * @since 2022-04-26
 */
@RestController
@CrossOrigin
@RequestMapping("/notice")
public class NoticeController {
    @Autowired
    NoticeService noticeService;
    @GetMapping("/list")
    public Result getpublish(){
        return Result.succ(noticeService.getPublishList());
    }

}
